/*
 * Copyright � 2008 Nokia Corporation.
 */

// INCLUDE FILES
#include "SudokuAppUi.h"
#include "SudokuDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CSudokuDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSudokuDocument* CSudokuDocument::NewL (CEikApplication& aApp )
    {
    CSudokuDocument* self = NewLC (aApp );
    CleanupStack::Pop (self );
    return self;
    }

// -----------------------------------------------------------------------------
// CSudokuDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSudokuDocument* CSudokuDocument::NewLC (CEikApplication& aApp )
    {
    CSudokuDocument* self = new ( ELeave ) CSudokuDocument( aApp );

    CleanupStack::PushL (self );
    self->ConstructL ( );
    return self;
    }

// -----------------------------------------------------------------------------
// CSudokuDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CSudokuDocument::ConstructL ( )
    {
    // No implementation required
    }

// -----------------------------------------------------------------------------
// CSudokuDocument::CSudokuDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CSudokuDocument::CSudokuDocument (CEikApplication& aApp ) :
    CAknDocument(aApp)
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CSudokuDocument::~CSudokuDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CSudokuDocument::~CSudokuDocument ( )
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CSudokuDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CSudokuDocument::CreateAppUiL ( )
    {
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return new ( ELeave )CSudokuAppUi;
    }

// End of File
